package com.exam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.exam.domain.enums.AnswerSheetStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "考试名")
public class AnswerSheet {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("编号")
    private Integer id;

    @TableField("objective_point")
    @ApiModelProperty("客观题得分")
    private Double objectivePoint;

    @TableField("subjective_point")
    @ApiModelProperty("主观题得分")
    private Double subjectivePoint;

    @TableField("total_point")
    @ApiModelProperty("总体得分")
    private Double totalPoint;

    @TableField("create_time")
    @ApiModelProperty("答题卡发放")
    private Date createTime;

    @TableField("end_time")
    @ApiModelProperty("结束答题时间")
    private Date endTime;

    @ApiModelProperty("答题卡状态")
    private String status;

    @TableField("exam_id")
    @ApiModelProperty("答题卡所属考试id")
    private Integer examId;

    @TableField("student_id")
    @ApiModelProperty("答题卡所属学生id")
    private String studentId;

    @TableField(exist = false)
    private Exam exam;

    @TableField(exist = false)
    private Student student;

    @TableField(exist = false)
    private List<Answer> answerList;
}
